package com.itheima.my_reggie;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Slf4j
@SpringBootApplication
@ServletComponentScan
@EnableTransactionManagement

//开启数据库读写分离功能
@EnableCaching
public class MyReggieApplication {

    public static void main(String[] args) {
        String name="reggie";
        log.info("{}项目启动",name);
        SpringApplication.run(MyReggieApplication.class, args);
    }

}
